﻿using System;
using System.Collections.Generic;
using System.Text;
using ET;
using Marx;

namespace Server
{
    [MessageHandler]
    public class PingHandler : AMRpcHandler<SSPingRequest, SSPingResponse>
    {
        protected override async ETTask Run(Session session, SSPingRequest request, SSPingResponse response, Action reply)
        {
            reply();
            await ETTask.CompletedTask;
        }
    }


    [MessageHandler]
    public class ProcessReadyHandler : AMHandler<SSProcessReadyNotify>
    {
        protected override void Run(Session session, SSProcessReadyNotify message)
        {
            ProcessReadyComponent.Instance.SetReady(message.ProcessId);
        }
    }
}
